package com.itsu.admin.jobhandle;

import com.itsu.job.components.ScheduleHandler;
import com.itsu.job.config.Job;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.LinkedHashMap;

/**
 * @author Jerry.Su
 * @Date 2021/12/31 11:33
 */
@Component("demo")
@Slf4j
public class DemoHandler implements ScheduleHandler {

    @Override
    public void handle(Job job) {
        log.info("job started..., job: {}", job);
        LinkedHashMap<String, Object> params = job.getParams();
    }


}
